       *> { dg-do run }
       *> { dg-output-file "group2/FUNCTION_FORMATTED-DATE_TIME_DATETIME.out" }

        IDENTIFICATION DIVISION.
        PROGRAM-ID. datetime.
        PROCEDURE DIVISION.
        DISPLAY "FUNCTION FORMATTED-DATETIME - valid format strings"
        DISPLAY "   FORMATTED-DATE Basic"
        DISPLAY FUNCTION FORMATTED-DATE("YYYYMMDD"   128623).
        DISPLAY FUNCTION FORMATTED-DATE("YYYYDDD"    128623).
        DISPLAY FUNCTION FORMATTED-DATE("YYYYWwwD"   128623).
        DISPLAY "   FORMATTED-DATE Extended"
        DISPLAY FUNCTION FORMATTED-DATE("YYYY-MM-DD" 128623).
        DISPLAY FUNCTION FORMATTED-DATE("YYYY-DDD"   128623).
        DISPLAY FUNCTION FORMATTED-DATE("YYYY-Www-D" 128623).
        DISPLAY "   FORMATTED-TIME Basic"
        DISPLAY FUNCTION FORMATTED-TIME("hhmmss"                45296.987654321 -300).
        DISPLAY FUNCTION FORMATTED-TIME("hhmmss+hhmm"           45296.987654321 -300).
        DISPLAY FUNCTION FORMATTED-TIME("hhmmss.ssss"           45296.987654321 -300).
        DISPLAY FUNCTION FORMATTED-TIME("hhmmss.ssss+hhmm"      45296.987654321 -300).
        DISPLAY FUNCTION FORMATTED-TIME("hhmmss.ssssZ"          45296.987654321 -300).
        DISPLAY FUNCTION FORMATTED-TIME("hhmmssZ"               45296.987654321 -300).
        DISPLAY "   FORMATTED-TIME Extended"
        DISPLAY FUNCTION FORMATTED-TIME("hh:mm:ss"              45296.987654321 -300).
        DISPLAY FUNCTION FORMATTED-TIME("hh:mm:ss+hh:mm"        45296.987654321 -300).
        DISPLAY FUNCTION FORMATTED-TIME("hh:mm:ss.ssss"         45296.987654321 -300).
        DISPLAY FUNCTION FORMATTED-TIME("hh:mm:ss.ssss+hh:mm"   45296.987654321 -300).
        DISPLAY FUNCTION FORMATTED-TIME("hh:mm:ss.ssssZ"        45296.987654321 -300).
        DISPLAY FUNCTION FORMATTED-TIME("hh:mm:ssZ"             45296.987654321 -300).
        DISPLAY "   FORMATTED-DATETIME Basic"
        DISPLAY FUNCTION FORMATTED-DATETIME("YYYYMMDDThhmmss" 128623 45296.987654321 -300).
        DISPLAY FUNCTION FORMATTED-DATETIME("YYYYMMDDThhmmss+hhmm" 128623 45296.987654321 -300).
        DISPLAY FUNCTION FORMATTED-DATETIME("YYYYMMDDThhmmss.ssss" 128623 45296.987654321 -300).
        DISPLAY FUNCTION FORMATTED-DATETIME("YYYYMMDDThhmmss.ssss+hhmm" 128623 45296.987654321 -300).
        DISPLAY FUNCTION FORMATTED-DATETIME("YYYYMMDDThhmmss.ssssZ" 128623 45296.987654321 -300).
        DISPLAY FUNCTION FORMATTED-DATETIME("YYYYMMDDThhmmssZ" 128623 45296.987654321 -300).
        DISPLAY FUNCTION FORMATTED-DATETIME("YYYYDDDThhmmss" 128623 45296.987654321 -300).
        DISPLAY FUNCTION FORMATTED-DATETIME("YYYYDDDThhmmss+hhmm" 128623 45296.987654321 -300).
        DISPLAY FUNCTION FORMATTED-DATETIME("YYYYDDDThhmmss.ssss" 128623 45296.987654321 -300).
        DISPLAY FUNCTION FORMATTED-DATETIME("YYYYDDDThhmmss.ssss+hhmm" 128623 45296.987654321 -300).
        DISPLAY FUNCTION FORMATTED-DATETIME("YYYYDDDThhmmss.ssssZ" 128623 45296.987654321 -300).
        DISPLAY FUNCTION FORMATTED-DATETIME("YYYYDDDThhmmssZ" 128623 45296.987654321 -300).
        DISPLAY FUNCTION FORMATTED-DATETIME("YYYYWwwDThhmmss" 128623 45296.987654321 -300).
        DISPLAY FUNCTION FORMATTED-DATETIME("YYYYWwwDThhmmss+hhmm" 128623 45296.987654321 -300).
        DISPLAY FUNCTION FORMATTED-DATETIME("YYYYWwwDThhmmss.ssss" 128623 45296.987654321 -300).
        DISPLAY FUNCTION FORMATTED-DATETIME("YYYYWwwDThhmmss.ssss+hhmm" 128623 45296.987654321 -300).
        DISPLAY FUNCTION FORMATTED-DATETIME("YYYYWwwDThhmmss.ssssZ" 128623 45296.987654321 -300).
        DISPLAY FUNCTION FORMATTED-DATETIME("YYYYWwwDThhmmssZ" 128623 45296.987654321 -300).
        DISPLAY "   FORMATTED-DATETIME Extended"
        DISPLAY FUNCTION FORMATTED-DATETIME("YYYY-MM-DDThh:mm:ss" 128623 45296.987654321 -300).
        DISPLAY FUNCTION FORMATTED-DATETIME("YYYY-MM-DDThh:mm:ss+hh:mm" 128623 45296.987654321 -300).
        DISPLAY FUNCTION FORMATTED-DATETIME("YYYY-MM-DDThh:mm:ss.ssss" 128623 45296.987654321 -300).
        DISPLAY FUNCTION FORMATTED-DATETIME("YYYY-MM-DDThh:mm:ss.ssss+hh:mm" 128623 45296.987654321 -300).
        DISPLAY FUNCTION FORMATTED-DATETIME("YYYY-MM-DDThh:mm:ss.ssssZ" 128623 45296.987654321 -300).
        DISPLAY FUNCTION FORMATTED-DATETIME("YYYY-MM-DDThh:mm:ssZ" 128623 45296.987654321 -300).
        DISPLAY FUNCTION FORMATTED-DATETIME("YYYY-DDDThh:mm:ss" 128623 45296.987654321 -300).
        DISPLAY FUNCTION FORMATTED-DATETIME("YYYY-DDDThh:mm:ss+hh:mm" 128623 45296.987654321 -300).
        DISPLAY FUNCTION FORMATTED-DATETIME("YYYY-DDDThh:mm:ss.ssss" 128623 45296.987654321 -300).
        DISPLAY FUNCTION FORMATTED-DATETIME("YYYY-DDDThh:mm:ss.ssss+hh:mm" 128623 45296.987654321 -300).
        DISPLAY FUNCTION FORMATTED-DATETIME("YYYY-DDDThh:mm:ss.ssssZ" 128623 45296.987654321 -300).
        DISPLAY FUNCTION FORMATTED-DATETIME("YYYY-DDDThh:mm:ssZ" 128623 45296.987654321 -300).
        DISPLAY FUNCTION FORMATTED-DATETIME("YYYY-Www-DThh:mm:ss" 128623 45296.987654321 -300).
        DISPLAY FUNCTION FORMATTED-DATETIME("YYYY-Www-DThh:mm:ss+hh:mm" 128623 45296.987654321 -300).
        DISPLAY FUNCTION FORMATTED-DATETIME("YYYY-Www-DThh:mm:ss.ssss" 128623 45296.987654321 -300).
        DISPLAY FUNCTION FORMATTED-DATETIME("YYYY-Www-DThh:mm:ss.ssss+hh:mm" 128623 45296.987654321 -300).
        DISPLAY FUNCTION FORMATTED-DATETIME("YYYY-Www-DThh:mm:ss.ssssZ" 128623 45296.987654321 -300).
        DISPLAY FUNCTION FORMATTED-DATETIME("YYYY-Www-DThh:mm:ssZ" 128623 45296.987654321 -300).
        END PROGRAM datetime.

